package com.ps.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ps.dto.MedicineDTO;
import com.ps.dto.MedicinePageQueryDTO;
import com.ps.entity.Medicine;
import com.ps.result.PageResult;
import com.ps.vo.MedicineVO;


import java.util.List;

public interface MedicineService extends IService<Medicine> {

    void saveWithForm(MedicineDTO medicineDTO);

    PageResult pageQuery(MedicinePageQueryDTO medicinePageQueryDTO);

    void deleteBatch(List<Long> ids);

    MedicineVO getByIdwithForm(Long id);

    void updateWithForm(MedicineDTO medicineDTO);

    List<Medicine> list(Long categoryId);

    List<MedicineVO> listWithForm(Medicine medicine);

    void starOrStop(Integer status, Long id);
}
